package com.wqiuqiu.gulimall.product.dao;

import com.wqiuqiu.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wqiuqiu.gulimall.product.vo.GroupAttrsVo;
import com.wqiuqiu.gulimall.product.vo.SpuItemAttrGroupVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 属性&属性分组关联
 * 
 * @author wqiuqiu
 * @email 18773489795@163.com
 * @date 2023-11-27 14:08:58
 */
@Mapper
public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> {

    void removeBatch(@Param("entities") List<AttrAttrgroupRelationEntity> entities);

    List<Long> findGroupAttr(@Param("ids") List<Long> attrGroupIds);

    List<GroupAttrsVo> findGroupByAttrIds(@Param("attrIds") List<Long> attrIds);
}
